package com.hbx.vo.blog;

import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/*
 * @Author:hbx
 *
 * */
@Data
public class BlogCommentVo {
    /**
     * {
     *     "id": 11,
     *     "date": "2020-05-31 12:18:55",
     *     "content": "的时刻层6666666632\n2面的思考名称看到什么材料是isdafjoisdjiojildsc",
     *     "parent_msg_id": null,
     *     "user_id": 3,
     *     "username": "zhangsan",
     *     "parent_msg_username": null,
     *     "children": []
     *   },
     */
    private Integer commentId;

    private String commnetContent;

    private Integer blogId;

    /**
     * 评论方user
     */
    private CommentUser wuser;

    private Date commentDate;

    private CommentUser parentCommentUser;

    private List<BlogCommentVo> children = new ArrayList<>();

    @Data
    public static class CommentUser{
        private Integer userId;
        private String userName;
        private String avator;
    }
}
